<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('api/zdm', function () {
    Route::get('add/activity', 'Index/handleActivityList');  //强制更新活动列表数据库
    Route::get('activity/list', 'Index/getActivityList');
    Route::post('activity/hot', 'Index/getArticleHot');
    Route::post('activity/add/one', 'Index/addOne');
    Route::put('activity/update/one', 'Index/updateOne');
    Route::delete('activity/delete/one/:id', 'Index/deleteOne');
})->middleware([
        \app\middleware\AllowOriginMiddleware::class,
        \app\middleware\AdminAuthTokenMiddleware::class
    ]);

